import { createApp } from 'vue'
import App from './App.vue'


import "./guard1"

import breadCrumb from "./components/breadCrumb1/index.vue"

import router1 from "./router1"

import router from "./router"
import bus from "./utils/bus"
let app = createApp(App)
// 注册全局组件，所有的组件里面不需要引入都可以使用
app.component('breadCrumb',breadCrumb)

// 将bus添加到全局
app.config.globalProperties.bus = bus

// 将router注入到没个子组件
// app.use(router)
app.use(router1)


app.mount('#app')